package com.mlc.mlcitems;

import org.bukkit.Bukkit;
import org.bukkit.World;
import org.bukkit.WorldCreator;
import org.bukkit.event.Listener;
import org.bukkit.plugin.Plugin;
import org.bukkit.plugin.java.JavaPlugin;

import java.util.Objects;

public final class Mlcitems extends JavaPlugin {
    public static Plugin instance;
    @Override
    public void onEnable() {
        // Plugin startup logic
        instance = this;
        getLogger().info("\n\nmlc物品插件加载成功\n\n");
        Bukkit.getPluginManager().registerEvents(new Useitem(),this);
        Objects.requireNonNull(Bukkit.getPluginCommand("mlctest")).setExecutor(new Mlctest());
        Objects.requireNonNull(Bukkit.getPluginCommand("clearall")).setExecutor(new clearall());
        
    }

    @Override
    public void onDisable() {
        // Plugin shutdown logic
        getLogger().info("\n\nmlc物品插件卸载成功\n\n");
    }
}
